#include "logger.h"

std::mutex CLogger::_mutex;
std::vector<ILoggerObserver *> CLogger::_obs;

std::ostringstream &operator<<(std::ostringstream &stream, const QString &msg)
{
    stream << msg.toStdString();
    return stream;
}

std::ostringstream &operator<<(std::ostringstream &stream, const CRet &ret)
{
    stream << " " << ret.code() << "(" << ret.string().toStdString() << ")";
    return stream;
}